<!DOCTYPE html>
<html>
<head>
  <title><%= title %></title>
  <link rel='stylesheet' href='/stylesheets/style.css' />
  <link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
  <link rel="stylesheet" href="/stylesheets/ionic.min.css">
  <script src="/js/ionic.bundle.min.js"></script>
  <script src="/js/aglar.js"></script>
  <script src="/js/jquery-3.1.1.js"></script>

</head>
<body ng-app="fx" ng-controller="modal">
<header>
  <div class="container">
    <img src="/images/sina.png" alt="新浪微博" title="新浪微博">
    <form action="#">
      <input type="text" placeholder="搜索">
    </form>
    <div>
      <a href="/"><span class="glyphicon glyphicon-home">首页</span></a>
      <% if(user){%>
      <a href="#"><%= user.name %></a>
      <a href="/logout">退出</a>
      <% }else{ %>
      <a href="/regist">注册</a>
      <a ng-click="openModal()">登录</a>
      <% } %>
    </div>
  </div>
</header>

